using System;
using log4net;

namespace SmartLink.Infrastructure.Logger
{
    public class AppLogger
    {
        public static void Info(string message)
        {
            DefaultLoggerProvider.Instance.Info(message);
        }

        public static void InfoFormat(string format, params object[] args)
        {
            DefaultLoggerProvider.Instance.InfoFormat(format, args);
        }

        public static void Warn(string message)
        {
            DefaultLoggerProvider.Instance.Warn(message);
        }

        public static void Error(string message, Exception ex = null)
        {
            DefaultLoggerProvider.Instance.Error(message, ex);
        }

        public static void Monitor(string message)
        {
            DefaultLoggerProvider.Instance.Info(message);
        }

    }
}
